package com.leisai.manager.dao;

import com.leisai.manager.dto.WriteDTO;
import com.leisai.manager.pojo.TreeNode;
import com.leisai.manager.pojo.Write;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WriteMapper {
    int deleteByPrimaryKey(Integer reportId);

    int insert(@Param("list") List<Write> record);

    List<WriteDTO> selectByPrimaryKey(Integer reportId);

    int updateByPrimaryKey(@Param("list") List<Write> record);

    List<TreeNode> getIndustryTotal(@Param("list")List<Integer> industryIds ,@Param("year")String year,@Param("inputName")String inputName);
}